package com.kh.samr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 根据统一社会信用代码查询Dto
 *
 * @author Harry
 * @date 2020/12/15
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "根据统一社会信用代码查询Dto")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ByUniformSocialCreditCodeDto extends AccessKeySecretDto {
	
	/**
	 * 统一社会信用代码
	 */
	@ApiModelProperty(value = "统一社会信用代码", required = true, example = "91120113X008027320")
	@NotBlank(message = "统一社会信用代码不能为空")
	@Size(max = 18, min = 18, message = "请输入正确统一社会信用代码")
	private String uniformSocialCreditCode;
}
